/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.home.logic;

import com.home.dao.VentureDao;
import com.home.mapping.Venture;
import java.util.List;

/**
 *
 * @author vi
 */
public class VentureLogic {
    public Venture findVenture(Integer idVenture) {
        Venture venture = new Venture();
        venture = (Venture)new VentureDao().findByPk(Venture.class, idVenture);
        return venture;
    }
    
    public List<Venture> findAllVenture() {
        return new VentureDao().findAll(Venture.class);
    }
}
